#pragma once

#include <opencv2/opencv.hpp> 
using namespace cv;


/// <summary>
/// źüĹĚĎěÓŚ˛Ů×÷
/// </summary>
/// <param name="image"></param>
void  Key_Demo(Mat& image)
{
	Mat dst = Mat::zeros(image.size(), image.type());
	//namedWindow("121",WINDOW_AUTOSIZE);

	//destroyAllWindows();
	while (true)
	{
		/*char response;
		std::cin >> response;*/

		int c = waitKeyEx(100);
		if (c == 27) { break; }
		if (c == 49)
		{
			std::cout << "#1" << std::endl;
			cvtColor(image, dst, COLOR_BGR2GRAY);
		}
		if (c == 50)
		{
			std::cout << "#2" << std::endl;
			cvtColor(image, dst, COLOR_BGR2HSV);
		}
		if (c == 51)
		{
			std::cout << "#3" << std::endl;
			dst = Scalar(50, 50, 50);
			add(image, dst, dst);
		}
		//std::cout << c << std::endl;
		imshow("źüĹĚĎěÓŚ", dst);
	}

}